from kyb_caps import *

# 相对定位
ele = driver.find_element(By.ID, 'com.tal.kaoyan:id/login_parent_layout')
ele.find_elements(By.CLASS_NAME, 'android.widget.EditText')[0].send_keys('ammyxh01')
ele.find_elements(By.CLASS_NAME, 'android.widget.EditText')[1].send_keys('ammyxh01')
ele.find_element(By.CLASS_NAME, 'android.widget.Button').click()
sleep(3)

driver.quit()
